import { request, requestForm } from './config'
import config from '@/config'
const base_api_path = config.publicPath
import qs from 'qs'

export function downloadHouseTemplate(data) {
  console.log('发送给后台的参数', data)
  return request({
    url: base_api_path + '/rest/api/item/upload/downloadHouseTemplate',
    method: 'get',
    responseType: 'blob',
    data
  })
}

// 导入楼盘/土地线索
export function uploadHouse(data) {
  console.log('发送给后台的参数', data)
  return request({
    url: base_api_path + '/rest/api/item/upload/uploadHouse',
    method: 'post',
    data
  })
}
